package com.example.vae;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;

import com.example.vae.Dao.PersonData.PersonReposity;
import com.example.vae.Pojo.Person;

import java.util.List;

public class HomeViewModel extends AndroidViewModel {

    //    这个是关于用户的工厂
    private PersonReposity personReposity;

    public HomeViewModel(@NonNull Application application) {
        super(application);
        personReposity=new PersonReposity(application);
    }

    public LiveData<List<Person>> getGetNuber() {
        return personReposity.getListLiveData();
    }
    // TODO: Implement the ViewModel
}
